package com.genius.user.bean;


import com.baomidou.mybatisplus.annotation.TableName;
import com.genius.util.ConstPool.dbTableName;
import lombok.Data;
import lombok.NonNull;
import org.springframework.stereotype.Component;

@Component
@Data
@TableName(dbTableName.I_USER)
public class User {
    @NonNull
    private String userId;
    @NonNull
    private String username;
    @NonNull
    private String password;
    private String avatar;
    @NonNull
    private String nickname;
    private String email;
    private String registrationDate;
    private String phoneNumber;

    public User(){

    }

    public User(String userId, String username, String password, String avatar, String nickname, String email, String registrationDate, String phoneNumber) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.avatar = avatar;
        this.nickname = nickname;
        this.email = email;
        this.registrationDate = registrationDate;
        this.phoneNumber = phoneNumber;
    }
}
